<template>
  <div>
    签约医生管理
    <el-table :data="tableData" style="width: 100%" height="500" >
      <el-table-column fixed prop="did" label="医生ID" width="100" align="center"></el-table-column>
      <el-table-column prop="uid" label="用户ID" v-if="false" width="100"></el-table-column>
      <el-table-column prop="dimage" label="医生头像" width="120" align="center"></el-table-column>
      <el-table-column prop="dname" label="医生姓名" width="120" align="center"> </el-table-column>
      <el-table-column prop="depid" label="所属科室" width="120" align="center"> </el-table-column>
      <el-table-column prop="dage" label="年龄" width="120" align="center"></el-table-column>
      <el-table-column prop="dsex" label="性别" width="120" align="center"></el-table-column>
      <el-table-column prop="dcard" label="身份证号" width="120" align="center"></el-table-column>
      <el-table-column prop="dtel" label="电话号码" width="120" align="center"> </el-table-column> 
      <el-table-column prop="dhospital" label="所属医院" width="120" align="center"></el-table-column>
      <el-table-column prop="daddress" label="医院地址" width="120" align="center"></el-table-column>
      <el-table-column prop="dcertificate" label="资格证书" width="120" align="center">
          <template slot-scope="scope">
            <img :src="scope.row.dcertificate" min-width="70" height="70"/>
          </template>
      </el-table-column>
      <el-table-column prop="education" label="学历" width="120" align="center"></el-table-column>
      <el-table-column prop="title" label="职称" width="120" align="center"></el-table-column>
      <el-table-column prop="school" label="毕业学校" width="120" align="center"></el-table-column>
      <el-table-column prop="dtext" label="个人简介" width="120" align="center"></el-table-column>
      <el-table-column prop="flag" label="状态" width="120" align="center"></el-table-column>
      <el-table-column label="操作" width="120" align="center"> 
        <el-button type="primary" round >解聘</el-button>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  data() {
      return {
        tableData: []
      }
    },
    methods:{
        findAll(){
            this.$axios.get("/admin-serv/admin/findAllWithText").then(resp=>{
              this.tableData=resp.data.data.data;
              console.log(resp.data.data.data);
            });
        }
    },
    mounted(){
        this.findAll();
    }
};
</script>

<style>
</style>